<script type="text/javascript">
    $(function(){
        //常规性校验dddddd
        $('#join').validate({
            'rules': {
                'email': {
                    'required': true,
                    'email': true, 
                    'remote': '/user/checkemail'
                },
                'nikename': {
                    'required': true,
                    'remote': '/user/checknikename'
                },
                'password2':{
                    'equalTo':'#password'
                }
            },
            messages:{
                'email':{
                    'remote':'该邮箱已注册，<a href="/user/retakepassword">激活并找回密码</a>。'
                },
                'nikename':{
                    'remote':'该昵称已注册。'
                },
                'password2':{'equalTo':"两次密码输入不一致"}
            } 
        });
        
        $('#submit').click(function(){
            _gaq.push(['_trackEvent', '用户注册', '用户注册', 'campaign_daigou']);
        });    
    });
</script>
<div class="content_eee">
    <div class="register">
        <div class="register_s">
            <div class="register_ad">
                <div class="ad"><img src="<?= $this->cnd_org ?>/images/member/register_ad.gif" alt="欢迎您注册悠奇网！我们为全球华人提供仓储、物流、代购等服务，用了才知道好。" /><h1>专注海外华人服务，仓储、配送、网购国货 一站式解决！</h1></div>
                <div class="go_login">
                    我已经注册，现在就 <a href="/user/login/">登录</a>
                </div>
            </div>
            <div class="register_info">
                <form id="join" method="post">
                    <table> 
                        <tr>
                            <td class="left"><span>*</span> Email</td>
                            <td>
                                <?php echo $this->formText('email', '', array('class' => 'required email')) ?>
                                <p>邮箱地址可用来登录、找回密码、接收通知等，以后不能修改！</p>
                            </td>
                        </tr>
                        <tr>
                            <td class="left"><span>*</span> 昵称</td>
                            <td><?php echo $this->formText('nikename', '', array('class' => 'required nikename', 'minlength' => 4, 'maxlength' => 20)) ?></td>
                        </tr>
                        <tr>
                            <td class="left"><span>*</span> 密码</td>
                            <td><?php echo $this->FormPassword('password', '', array('class' => 'required', 'minlength' => 6, 'maxlength' => 12)) ?> </td>
                        </tr>
                        <tr>
                            <td class="left"><span>*</span> 确认密码</td>
                            <td><?php echo $this->FormPassword('password2', '', array('class' => 'required', 'minlength' => 6, 'maxlength' => 12)) ?>
                                
                            </td>
                        </tr>
                    </table>
                    <div class="Establish">
                        <p>点击按钮表示你同意我们的 <a href="http://help.uuch.com/?p=68" target="_blank">服务条款</a> - <a target="_blank" href="http://help.uuch.com/?p=70">隐私政策</a></p>
                        <input name="submit" id="submit" type="submit" value="创建我的账号" onmouseover="this.className='btn'" onmouseout="this.className=''" />
                    </div>
                </form>
            </div>

        </div>
    </div>
</div>
<?php
if (isset($this->message)) {
    echo '<script language="javascript" type="text/javascript">alert("' . $this->message . '")</script>';
}
?>
